﻿<%@ Page Language="C#" MasterPageFile="~/site.master" AutoEventWireup="true" CodeFile="frmMateriasCurso.aspx.cs"
    Inherits="Admin_Materias_MateriasCurso" Title="Untitled Page" %>

<%@ Register Src="~/Controles/CboGeneric.ascx" TagName="CboGeneric" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PageContainer" runat="Server">
    <table style="width: 558px; height: 100%" cellspacing="0" cellpadding="0" border="0">
        <tbody>
            <tr>
                <td style="width: 611px; height: 65px">
                    &nbsp;<uc2:cbogeneric id="cboCurso" runat="server" tipoorigen="Procedure" tabla="proc_CursoDisponibles"
                        nameid="IdCurso" namedescript="CursoDescrip" Width="300px"></uc2:cbogeneric></td>
                <td style="width: 600px; height: 65px">
                    &nbsp;&nbsp;&nbsp;
                    <uc2:cbogeneric id="CboMateria" runat="server" Width="400px"></uc2:cbogeneric>
                </td>
                <td style="width: 600px; height: 65px">
                    &nbsp;<asp:Button ID="cmdOk" OnClick="cmdOk_Click" runat="server" Text="Guardar"></asp:Button></td>
            </tr>
            <tr>
                <td style="height: 144px" colspan="2">
                    <asp:GridView ID="GridView1" runat="server" 
                    AutoGenerateColumns="False"
        EmptyDataText="No hay registros de datos para mostrar."
        OnRowDeleting="GridView1_RowDeleting" 
        DataKeyNames="IdMateriaCurso"
        
        >
        <Columns>
            <asp:BoundField DataField="idMateriaCurso" 
                HeaderText="Id" 
                ReadOnly="True" 
                SortExpression="idMateriaCurso" 
                Visible="False" />
            <asp:BoundField DataField="CursoDescrip" HeaderText="Curso" visible="true"/>
            <asp:BoundField DataField="Apellido" HeaderText="Profesor" />
            <asp:BoundField DataField="MateriaDesc" HeaderText="Materia" />
            <asp:TemplateField>
                <ItemTemplate>
                    <div id="noprint">
                        <asp:ImageButton ID="ImageButton2" runat="server" CausesValidation="False" CommandName="Delete"
                            ImageUrl="~/Images/delete.gif" Text="Delete" />
                    </div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
                    
                    
                    </td>
                <td style="height: 144px" colspan="1">
                </td>
            </tr>
        </tbody>
    </table>

</asp:Content>
